<?

 session_start();
REQUIRE("../../protect/connect.php");
$query="SELECT batiment_loc FROM SDBatiment where batiment_id=$batiment";
$resultat=mysql_query($query);
$tmp=mysql_fetch_row($resultat);

$query="UPDATE Sduser_perso SET perso_loc='$tmp[0]' where perso_id=$userperso";
$resultat=mysql_query($query);

mysql_close();



?>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
<title>Sombre destin</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<?

?>
<frameset rows="*" cols="*,200" framespacing="0" frameborder="NO" border="0">
  <frame src="<? echo"tour-accueil.php?batiment=$batiment" ?>" name="villemain">
  <frame src="<? echo"menu-tour.php?batiment=$batiment"?>" name="villemenu" scrolling="NO" noresize>
</frameset>
<noframes><body>

</body></noframes>
</html>
